package com.kexinxin.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.kexinxin.bean.Question;
import com.kexinxin.util.Pagination;



public interface QuestionDao {

	
	List<Question> selectQuestion(Pagination page);

	
	List<Question> selectByCate(@Param("array") int[] cateIds, Pagination page);

	
	List<Question> selectByStatus(int status, Pagination page);

	
	int insert(Question record);

	
	int selectLastInsertQuestionId();

	int deleteByPrimaryKey(Integer questionId);

	int insertSelective(Question record);

	Question selectByPrimaryKey(Integer questionId);

	int updateByPrimaryKeySelective(Question record);

	int updateByPrimaryKey(Question record);

}